'use strict';

const BaseService = require('../base');

class ProductService extends BaseService {
  static get modelName() {
    return 'Business.Product';
  }

  getDetailInclude() {
    return [
      {
        model: this.ctx.model.Business.ProductSpec,
        as: 'specs',
      },
      {
        model: this.ctx.model.Business.ProductSku,
        as: 'skus'
      }
    ]
  }
}

module.exports = ProductService;
